package com.syni.mdd.sjb.common.component.utils.feign.service.mddAll;

import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import com.syni.dto.mddDspApi.CreateNewsDto;
import com.syni.mdd.sjb.common.component.utils.feign.dto.mddAll.apiAuroraPush.CommonPushDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;


@FeignClient(value = Constants.MDD_DSP_API,path = Constants.MDD_DSP_API_PATH)
public interface PushService {

    @PostMapping("/dxNews/fxCenterNews")
    Map<String,Object> fxCenterNews(@RequestBody CreateNewsDto createNewsDto);


    @PostMapping("/ApiAuroraPush/commonCustomMessage")
    Map<String,Object> commonCustomMessage(@RequestBody CommonPushDto commonPushDto);
}
